package com.itheima;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

//启动类的位置，必须位于其他类的父包中
@SpringBootApplication
@MapperScan("com.itheima.mapper") //指定mapper接口所在的包
public class SpringBootDemoApplication {
    public static void main(String[] args) {
        //参数1: 启动类.class
        //参数2: args
        SpringApplication.run(SpringBootDemoApplication.class,args);
    }
}

